package com.panfeng.xcloud.scheduler.service;

import com.alibaba.fastjson.JSONObject;
import com.panfeng.xcloud.boss.provider.dto.request.QuantBotDetailDTO;
import com.panfeng.xcloud.common.core.candle.Entry;
import com.panfeng.xcloud.common.core.candle.SuitEntry;
import com.panfeng.xcloud.common.core.enums.MovingAveragePeriodEnum;

import java.math.BigDecimal;
import java.util.List;

public interface ICalculatePriceService {

    BigDecimal[] calculatePrice(JSONObject depth, QuantBotDetailDTO quantBotDetailDTO) throws Exception;

    List[] calculateKdj(JSONObject candleStick) throws Exception;

    float[] calculateMA(JSONObject candleStick, MovingAveragePeriodEnum maPeriod) throws Exception;

    List<Entry> calculateEMA(JSONObject candleStick, MovingAveragePeriodEnum maPeriod) throws Exception;

    BigDecimal getNeedAskPieces(QuantBotDetailDTO quantBotDetailDTO);

    BigDecimal getAntiNeedAskPieces(QuantBotDetailDTO quantBotDetailDTO);

}
